package com.qingfeng.base.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingfeng.base.model.TRole;
import com.qingfeng.base.model.TUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2019/9/18 2:38 下午
 */
public interface TUserRoleMapper extends BaseMapper<TUserRole> {

    int insertList(@Param("userId") Long userId, @Param("list") List<TRole> list);

    int deleteByUserId(@Param("userId") Long userId);

    int deleteByUserIds(@Param("userIds") List<Long> userIds);
}
